import request from '@/utils/request'

  //网关分页查询  
  export const list = (query) => {
    return request({
      url: '/resource/gateway/page',
      method: 'get',
      params: query
    })
  }
  
  //绑定子设备
  export const bound = (obj) => {
    return request({
      url: '/resource/gateway/bound',
      method: 'post',
      data: obj
    })
  }
  //解绑子设备
  export const unBound = (obj) => {
    return request({
      url: '/resource/gateway/unBound',
      method: 'post',
      data: obj
    })
  }
  //获取未绑定网关子设备
  export const list2 = (obj) => {
    return request({
      url: '/resource/gateway/gatewayDevice/unbounded',
      method: 'get',
      params: obj
    })
  }
  
  